package nowCoder;

import java.util.*;

public class HJ66 {
    /**
     /**
     * board add
     * board delete
     * reset
     * he he
     * board delete
     * reboot backplane
     * he he
     * he he
     * reset board
     * he he
     * reset board
     * he he
     * reset
     * board add
     * reset board
     * backplane abort
     * reset board
     * he he
     * board delete
     * backplane abort
     * board delete
     * reset
     * reset
     * he he
     * backplane abort
     * board add
     * reset board
     * he he
     * he he
     * reboot backplane
     * board add
     * reset board
     * board delete
     * board delete
     * reset board
     * reboot backplane
     * he he
     * board delete
     * board delete
     * board delete
     * reset board
     * board delete
     * he he
     * board delete
     * backplane abort
     * backplane abort
     * board add
     * backplane abort
     * board delete
     * backplane abort
     * reboot backplane
     * board delete
     * reset
     * reboot backplane
     * backplane abort
     * backplane abort
     * reset board
     * board delete
     * board add
     * board add
     * reset board
     * backplane abort
     * board add
     * backplane abort
     * reset
     * reset board
     * reset
     * board delete
     * board add
     * reboot backplane
     * reset board
     * reset board
     * reboot backplane
     * he he
     * reset
     * board add
     * board add
     * reset board
     * reset board
     * board delete
     * he he
     * backplane abort
     * reboot backplane
     * board delete
     * board delete
     * board delete
     * reboot backplane
     * board add
     * board add
     * board add
     * reboot backplane
     * he he
     * reboot backplane
     * reset board
     * board add
     * reset
     * backplane abort
     * reset
     * board add
     * board delete
     * reset
     * reboot backplane
     * reset
     * reset
     * reset
     * backplane abort
     * reset board
     * board delete
     * board add
     * reset
     * reset board
     * reset
     * he he
     * reboot backplane
     * board add
     * reset
     * reset board
     * reboot backplane
     * board add
     * backplane abort
     * board delete
     * he he
     * board add
     * reset
     * board add
     * reboot backplane
     * reboot backplane
     * board delete
     * he he
     * board delete
     * board delete
     * reset
     * he he
     * reset
     * reset
     * reboot backplane
     * reset board
     * backplane abort
     * he he
     * reset board
     * reboot backplane
     * board add
     * reboot backplane
     * backplane abort
     * board delete
     * board delete
     * reboot backplane
     * reset board
     * board add
     * he he
     * reset board
     * he he
     * reset board
     * board add
     * reset board
     * reboot backplane
     * reset
     * backplane abort
     * reset board
     * reset board
     * board delete
     * board delete
     * reset board
     * board add
     * backplane abort
     * reset board
     * he he
     * board delete
     * he he
     * reset board
     * backplane abort
     * reboot backplane
     * board delete
     * backplane abort
     */
/*
    where to add
    no board at all
    reset what
    unknown command
    no board at all
    impossible
    unknown command
    unknown command
    board fault
    unknown command
    board fault
    unknown command
    reset what
    where to add
    board fault
    install first
    board fault
    unknown command
    no board at all
    install first
    no board at all
    reset what
    reset what
    unknown command
    install first
    where to add
    board fault
    unknown command
    unknown command
    impossible
    where to add
    board fault
    no board at all
    no board at all
    board fault
    impossible
    unknown command
    no board at all
    no board at all
    no board at all
    board fault
    no board at all
    unknown command
    no board at all
    install first
    install first
    where to add
    install first
    no board at all
    install first
    impossible
    no board at all
    reset what
    impossible
    install first
    install first
    board fault
    no board at all
    where to add
    where to add
    board fault
    install first
    where to add
    install first
    reset what
    board fault
    reset what
    no board at all
    where to add
            impossible
    board fault
    board fault
    impossible
    unknown command
    reset what
    where to add
    where to add
    board fault
    board fault
    no board at all
    unknown command
    install first
    impossible
    no board at all
    no board at all
    no board at all
    impossible
    where to add
    where to add
    where to add
            impossible
    unknown command
    impossible
    board fault
    where to add
    reset what
    install first
    reset what
    where to add
    no board at all
    reset what
    impossible
    reset what
    reset what
    reset what
    install first
    board fault
    no board at all
    where to add
    reset what
    board fault
    reset what
    unknown command
    impossible
    where to add
    reset what
    board fault
    impossible
    where to add
    install first
    no board at all
    unknown command
    where to add
    reset what
    where to add
            impossible
    impossible
    no board at all
    unknown command
    no board at all
    no board at all
    reset what
    unknown command
    reset what
    reset what
    impossible
    board fault
    install first
    unknown command
    board fault
    impossible
    where to add
            impossible
    install first
    no board at all
    no board at all
    impossible
    board fault
    where to add
    unknown comm
     */
    static Map<String,String> map = new HashMap<>();
    static{
        map.put("reset","reset what");
        map.put("reset board","board fault");
        map.put("board add","where to add");
        map.put("board delete","no board at all");
        map.put("reboot backplane","impossible");
        map.put("backplane abort","install first");
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextLine()){
            String x = sc.nextLine();
            String clint = null;
            String[] sx = x.split(" ");
            ln:
            for (Map.Entry<String, String> entry : map.entrySet()) {
                String key = entry.getKey();
                String[] sk = key.split(" ");
                if (sk.length == sx.length){
                    for (int i = 0; i < sk.length; i++) {
                        for (int j = 0; j < sx[i].length(); j++) {
                            if (sx[i].charAt(j) != sk[i].charAt(j)) {
                                continue ln;
                            }
                        }
                    }
                    if (clint != null){
                        clint = null;
                        continue ;
                    }
                    clint = key;
                }
            }
            System.out.println(map.get(clint) != null ? map.get(clint):"unknown command");
        }
    }
}
